package com.ctshk.rpc.order.custom.req.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 银行优惠计算req
 * </p>
 *
 * @author 叶冠峰
 * @since 2021-03-03
 */
@Data
@ApiModel(value="银行优惠计算req", description="银行优惠计算req")
public class CustomOrderCollectionCalculationReq implements Serializable {

    @NotNull(message = "订单ID不能为空")
    @ApiModelProperty(value = "订单ID",required = true)
    private Long orderId;

    @NotNull(message = "团期ID不能为空")
    @ApiModelProperty(value = "团期ID",required = true)
    private Long scheduleId;

    @ApiModelProperty(value = "用户Id")
    private Long userId;

    @NotNull(message = "银行优惠ID不能为空")
    @ApiModelProperty(value = "银行优惠Id",required = true)
    private Long bankPreferenceId;

    @NotNull(message = "添加项不能为空")
    @ApiModelProperty(value = "添加项",required = true)
    private List<CustomOrderCollectionCalculationItemReq> items;
}
